

cc.game.onStart = function(){
    window.hyExt =null;
    //var hyextInfo = __hyextInfo || window.__hyextInfo;

    //console.log("*** 获取虎牙系统信息*****",hyextInfo.extType);
    //cc.isHost = false;
    //if(hyextInfo.extType=="pc_anchor_panel"){
        cc.isHost = true;// 是否是主播
    //}
    cc.view.adjustViewPort(true);
    // 适配屏幕
    cc.view.setDesignResolutionSize(1334,750,cc.ResolutionPolicy.FIXED_HEIGHT);
    cc.view.resizeWithBrowserSize(true);
    cc.LoaderScene.preload(resources, function () {
        //创建游戏场景
        var game = new GameScene();
        cc.director.runScene(game);
    }, this);
};

cc.game.run();
